package date;

import java.util.Calendar;
import java.util.Date;

/**
 * 測試 Calendar 物件設定屬性值, 檢查時間如何變化<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class FetchDateFromSetting
{
    public FetchDateFromSetting()
    {
        Calendar calendar = Calendar.getInstance();

        calendar.set( Calendar.HOUR_OF_DAY, 8 );

        Date date = calendar.getTime();

        System.out.println( date );
    }

    public static void main( String[] args )
    {
        new FetchDateFromSetting();
    }
}
